Xbasic

LOAD_ADB_DEF Function

Syntax

File_List as C = LOAD_ADB_DEF(C Filename[,N MODE])

Arguments

Filename

The fully qualified name of the .adb file (including full drive/path information and .adb extension). Character

MODE

Numeric. Database_Name Mode Sets the format of the returned data. 0 = Just .dbf and .set filenames, 1 = More detailed information

Description

Returns contents of an ADB file in a readable format mode=1 for load all contents, 0 for just tables and sets.

Discussion

LOAD_ADB_DEF() creates a string that contains the names of all of the files in an .ADB (database) file. The database does not have to be open. This allows your Xbasic program to know the contents of the Control Panel.

Example

? load_adb_def("C:\Databases\Expressions Test\AlphaSports.adb", 1)
= :Files
c:\databases\expressions test\invoice_items.dbf
c:\databases\expressions test\alphasports.alb
c:\databases\expressions test\salespeople.ddd
...
?load_adb_def("C:\Databases\Expressions Test\AlphaSports.adb", 0)
= c:\databases\expressions test\invoice_items.dbf
c:\databases\expressions test\customer.dbf
c:\databases\expressions test\inventory.set
...

See Also